﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Administrator
{
    public partial class ucCommGroup : UserControl
    {
        private Boolean LoadSetting = false;
        public Byte tmpGroupID = 0;

        public ucCommGroup()
        {
            InitializeComponent();
        }

        public void FillSetting(Byte GroupID)
        {
            tmpGroupID = GroupID;
            LoadSetting = true;
            if (tmpGroupID < 1) tmpGroupID = 1;
            nudGroup.Value = tmpGroupID;
            LoadSetting = false;            
        }

        private void nudGroup_ValueChanged(object sender, EventArgs e)
        {
            if (!LoadSetting) tmpGroupID = (Byte)nudGroup.Value;
        }
    }
}
